/*
 * @Author: your name
 * @Date: 2021-09-24 08:52:37
 * @LastEditTime: 2021-10-12 15:17:28
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \led\main.c
 */
#include <stdio.h>
#include <wiringPi.h>
#include "uart.h"
#include "robot.h"


static char G_ACT_GROUP[100][119] = {0};

static char G_ROBOT_ACTION_BY_NAME[100][2] = 
{
	{11,18},//GO_AWAY
	{3,10},//GO_BACK
}

void robot_action(ROBOT_ACTION_NAME_T act_name)
{
	for(i = G_ROBOT_ACTION_BY_NAME[act_name][0];i < G_ROBOT_ACTION_BY_NAME[act_name][1];i++)
	{
		uart_send(sd,G_ACT_GROUP[i]);
	}
}
